<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
        <title>我的信息</title>
        <link rel="stylesheet" href="/Public/User/css/weui.css"/>
        <script src="/Public/User/js/jweixin-1.1.0.js"></script>
        <script src="/Public/User/newjs/jquery.js"></script>
        <script type="text/javascript" src="/Public/Center/js/layer.js"></script>
        <script>
            $(function(){
                /* 微信jssdk验证区域开始 */
                wx.config({
                    //关闭调试模式
                    debug: false,
                    appId: '<?php echo $signPackage["appId"];?>',
                    timestamp: <?php echo $signPackage["timestamp"];?>,
                    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                    signature: '<?php echo $signPackage["signature"];?>',
                    jsApiList: [
                      'closeWindow','hideOptionMenu'
                    ]
                });

                /* 微信jssdk验证区域结束 */
                wx.ready(function(){
                    //屏蔽菜单
                    wx.hideOptionMenu();
                });
                function close_window(){
                    wx.closeWindow();
                }

                $('#submit_no').bind('click',function(){
                    close_window();
                });
                //提交审核
                var uuid = '<?php echo ($uuid); ?>';
                $('#submit_yes').click(function(){
                    layer.confirm('确定要提交吗?',{
                        btn : ['确定','取消']
                    },function(){
                        layer.closeAll('dialog'); //关闭弹出层
                        layer.load(1, {shade: false});  //加载弹出层的加载样式
                        location.href = '/Pc/Update/index/uuid/'+uuid;
                    });
                })


            });
        </script>
    </head>
    <body>
        <div id="dialog1" style="display:none;">
            <div class="weui-mask"></div>
            <div class="weui-dialog">
                <div class="weui-dialog__hd"><strong class="weui-dialog__title">操作提示</strong></div>
                <div class="weui-dialog__bd">确定要提交审核吗？</div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
                </div>
            </div>
        </div>

        <div class="weui-panel__bd">
            <?php
 foreach($menu as $k => $v){ if($v['display']){ if($v['change_type'] == 1){ $style="style='color:red'"; }else{ $style="style=''"; } ?>
            <a style="padding:2px;" href="/User/List/index/menu/<?php echo $v['name']?>" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img style="vertical-align: middle;width:40px;" class="weui-media-box__thumb" src="<?php echo $v['thumb'];?>" alt="">
                </div>
                <div class="weui-media-box__bd" <?php echo $style;?>>
                    <h4 class="weui-media-box__title"><?php echo $v['caption'];?></h4>
                </div>
            </a>
            <?php }}?>
        </div>
        <div style="padding:20px;">
            <a id="submit_yes" href="javascript:;" class="weui-btn weui-btn_primary">提交审核</a>
            <a id="submit_no" href="javascript:;" class="weui-btn weui-btn_disabled weui-btn_default">关闭</a>
        </div>
        <div class="weui-footer">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">中国航天</a>
            </p>
            <p class="weui-footer__text">Copyright &copy; 2008-2017</p>
        </div>
    </body>
</html>